package com.vcc.service.service;


import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.vcc.data.entity.Notice;
import com.vcc.service.boss.request.notice.UpdateNoticeDto;
import com.vcc.service.boss.request.notice.UpdateNoticeStatusDto;

import java.util.List;

public interface NoticeService extends IService<Notice> {

    Page<Notice> paging(Page<Notice> paging,String title);

    Page<Notice> paging(Page<Notice> paging,String title,Integer type,Boolean status,Boolean hasPopup);

    List<Notice> listPopup();

    Long countHasPopup();

    Notice getById(Long id);

    Boolean updateStatus(UpdateNoticeStatusDto updateNoticeStatusDto);

    Boolean updateHasPopup(Long id, Boolean hasPopup);


    Boolean updateNotice(UpdateNoticeDto updateNoticeDto);
}
